//
//  BaiDuMapViewController.h
//  ZhuZhan
//
//  Created by 汪洋 on 14-8-27.
//
//

#import <UIKit/UIKit.h>
#import <BaiduMapAPI/BMapKit.h>
#import "MapContentView.h"
@interface BaiDuMapViewController : UIViewController<BMKMapViewDelegate,BMKLocationServiceDelegate,BMKGeoCodeSearchDelegate>{
    BMKMapView* _mapView;
    BMKLocationService* _locService;
    BMKGeoCodeSearch* _geocodesearch;
    BMKAnnotationView* newAnnotation;
    BMKPointAnnotation* annotationPoint;
    UIImageView *imageView;//绘画层
    CGMutablePathRef pathRef;//手指画线的Path
    CGPoint locationConverToImage;//存储转换测试位置的CGPoint
    CLLocationCoordinate2D testLocation;//测试的位置(经纬度)
    UIView *btnView;
    UIButton *drawBtn;
    UIButton *refreshBtn;
    UIButton *resetBtn;
    bool isGeoSearch;
    NSMutableArray *showArr;
    NSMutableArray *latArr;
    NSMutableArray *logArr;
    NSMutableArray *pointArr;
    UIView *bgView;
    NSArray *numberArr;
    int topCount;
    UIView *topBgView;
    UILabel *countLabel;
    NSMutableArray *coordinates;
    BMKPolygon* polygon;
    MapContentView* _MapContent;
    int hasProject;
    
    int startIndex;
    int allCount;
    CLLocationDistance dis;
    CLLocationCoordinate2D centerLocation;
}

@end

//没有定位的页面
//@protocol LocationErrorViewDelegate <NSObject>
//-(void)reloadMap;
//@end
//@interface LocationErrorView : UIView
//@property(nonatomic,weak)id<LocationErrorViewDelegate> delegate;
//- (id)initWithFrame:(CGRect)frame;
//@end
